package com.arron.DesignMode.proxy.staticproxy;

/**
 * @Classname TeacherDaoProxy
 * @Date 2020/11/9 11:03
 * @Created by 刘
 */
public class TeacherDaoProxy implements ITeacherDao{

    private TeacherDao teacherDao;

    public TeacherDaoProxy(TeacherDao teacherDao) {
        this.teacherDao = teacherDao;
    }

    @Override
    public void teach() {

        System.out.println("目标方法执行之前");

        teacherDao.teach();

        System.out.println("目标方法执行之后");

    }
}
